<template>
    <div>
        <button @click="checkUserLogin">
            123
        </button>
    </div>
</template>

<script>
import axios from "axios";
export default {
    name: "AppTest",
    data(){
        return{

        }
    },
    methods:{
        checkUserLogin() {
            var that = this;
            axios.get("http://localhost:8848/test").then(
                function (response) {
                    console.log(response);
                    that.username=response.data.data;
                }
            );
        }
    }
}
</script>

<style scoped>

</style>
